﻿using BCEntity.IM.CustomService;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace BCData.IM.CustomerService
{
    /// <summary>
    /// 客服
    /// </summary>
    public interface ICustomerServiceData
    {
        /// <summary>
        /// 获取客服
        /// </summary>
        /// <param name="adminId">客服Id</param>
        /// <returns></returns>
        Task<CustomerServiceEntity> GetCustomerServiceAsync(long adminId);
        /// <summary>
        /// 添加客服
        /// </summary>
        /// <param name="entity"></param>
        /// <returns></returns>
        Task InsertAsync(CustomerServiceEntity entity);
        /// <summary>
        /// 更新客服
        /// </summary>
        /// <param name="entity"></param>
        /// <returns></returns>
        Task UpdateAsync(CustomerServiceEntity entity);

        /// <summary>
        /// 获取普通客服。
        /// </summary>
        /// <param name="countyCode"></param>
        /// <returns></returns>
        Task<IEnumerable<CustomerServiceEntity>> GetCustomerServicesAsync(string countyCode);
        
        /// <summary>
        /// 获取客服总监。
        /// </summary>
        /// <returns></returns>
        Task<CustomerServiceEntity> GetDirectorAsync();
    }
}
